//
//  BaseChartView.h
//  GLGW_Shoping
//
//  Created by yang on 2018/11/29.
//  Copyright © 2018年 yang. All rights reserved.
//

#import <UIKit/UIKit.h>

#define MARGIN_LEFT kWidthProportion_In_iPhoneTriploid(15)  //统计图的左间隔
#define MARGIN_TOP kHeightProportion_In_iPhoneTriploid(33)  //统计图的顶部间隔
#define MARGIN_BETWEEN_X_POINT (KScreenWidth - kWidthProportion_In_iPhoneTriploid(60))/6   //X轴的坐标点的间距
#define Y_SECTION 5                 //纵坐标轴的区间数
#define JIANJU_Y 1000                 //纵坐标轴的一段大小

NS_ASSUME_NONNULL_BEGIN

@interface BaseChartView : UIView
@property (strong, nonatomic) NSMutableArray *dataSource;

//纵坐标上标记点的间距(即虚线的间距)
@property (assign, nonatomic) CGFloat dashedSpace;
//纵坐标最大值
@property (assign, nonatomic) int maxYValue;
//纵坐标的数值间隔(显示出来的坐标值的间隔)
@property (assign, nonatomic) int yNumberSpace;

/**
 *  @author li_yong
 *
 *  构造函数
 *
 *  @param dataSource 数据源
 *
 */
- (id)initWithDataSource:(NSMutableArray *)dataSource;

@end

NS_ASSUME_NONNULL_END
